package com.wk.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @program: thesis
 * @description: 通信配置类
 * @author: 王侃
 * @create: 2020-03-04 22:17
 **/
@Configuration
public class Webscoketconfig {
    //用来扫描和注册所有携带serverEndpoint注解的实例,用于实现聊天
    //如果部署到服务器就需要注释掉
    @Bean
    public ServerEndpointExporter serverEndpointExporter()
    {
        return new ServerEndpointExporter();
    }
}
